import GLOBAL from '@/const/global_variable'
const api = {
    "WEBSITE": "https://www.jishulincs.cn",
    // "WEBSITE": "http://localhost:8088",
    
    // 上传文件（本地记录）（所有文件，不做任何处理）
    "putObjectChannelLocalFile": GLOBAL.proxyUrl + "api/wf/putObjectChannelLocalFile",
    
	// 单位平台管理
	'getCompanyList': GLOBAL.proxyUrl + "api/wf/getCompanyList",
	'getCompanyById': GLOBAL.proxyUrl + "api/wf/getCompanyById",
	'getCompanyListTree': GLOBAL.proxyUrl + "api/wf/getCompanyListTree",
	'companyCrd': GLOBAL.proxyUrl + "api/wf/companyCrd",
	'companyEdt': GLOBAL.proxyUrl + "api/wf/companyEdt",
	'companyRmv': GLOBAL.proxyUrl + "api/wf/companyRmv",
	'companySts': GLOBAL.proxyUrl + "api/wf/companySts",
	'orgCrd': GLOBAL.proxyUrl + "api/wf/orgCrd",
	'orgEdt': GLOBAL.proxyUrl + "api/wf/orgEdt",
	'orgRmv': GLOBAL.proxyUrl + "api/wf/orgRmv",
    
    // 授权相关
    'getAuthorizeTree': GLOBAL.proxyUrl + "api/wf/getAuthorizeTree",
    'authorizeCompany': GLOBAL.proxyUrl + "api/wf/authorizeCompany",
    'authorizeRole': GLOBAL.proxyUrl + "api/wf/authorizeRole",
    'authorizeUser': GLOBAL.proxyUrl + "api/wf/authorizeUser",
    'authorizeDict': GLOBAL.proxyUrl + "api/wf/authorizeDict",
	
    // 角色管理
    'getRoleList': GLOBAL.proxyUrl + "api/wf/getRoleList",
    'getRoleById': GLOBAL.proxyUrl + "api/wf/getRoleById",
    'getRoleDicts': GLOBAL.proxyUrl + "api/wf/getRoleDicts",
    'roleCrd': GLOBAL.proxyUrl + "api/wf/roleCrd",
    'roleEdt': GLOBAL.proxyUrl + "api/wf/roleEdt",
    'roleRmv': GLOBAL.proxyUrl + "api/wf/roleRmv",
    'roleSts': GLOBAL.proxyUrl + "api/wf/roleSts",
    
    // 用户管理
    'getUserList': GLOBAL.proxyUrl + "api/wf/getUserList",
    'getUserById': GLOBAL.proxyUrl + "api/wf/getUserById",
    'userCrd': GLOBAL.proxyUrl + "api/wf/userCrd",
    'userEdt': GLOBAL.proxyUrl + "api/wf/userEdt",
    'userRmv': GLOBAL.proxyUrl + "api/wf/userRmv",
    'userSts': GLOBAL.proxyUrl + "api/wf/userSts",
    'userRepwd': GLOBAL.proxyUrl + "api/wf/userRepwd",
    
	// 菜单管理
	'getMenuListTree': GLOBAL.proxyUrl + "api/wf/getMenuListTree",
	'menuCrd': GLOBAL.proxyUrl + 'api/wf/menuCrd',
	'menuEdt': GLOBAL.proxyUrl + 'api/wf/menuEdt',
	'menuRmv': GLOBAL.proxyUrl + 'api/wf/menuRmv',
	// 字典管理
	'getDictTypeList': GLOBAL.proxyUrl + 'api/wf/getDictTypeList',
	'getDictTypeById': GLOBAL.proxyUrl + 'api/wf/getDictTypeById',
	'dictTypeCrd': GLOBAL.proxyUrl + 'api/wf/dictTypeCrd',
	'dictTypeEdt': GLOBAL.proxyUrl + 'api/wf/dictTypeEdt',
	'dictTypeRmv': GLOBAL.proxyUrl + 'api/wf/dictTypeRmv',
	'dictTypeAccess': GLOBAL.proxyUrl + 'api/wf/dictTypeAccess',
	'getDictList': GLOBAL.proxyUrl + 'api/wf/getDictList',
	'getDictById': GLOBAL.proxyUrl + 'api/wf/getDictById',
	'dictCrd': GLOBAL.proxyUrl + 'api/wf/dictCrd',
	'dictEdt': GLOBAL.proxyUrl + 'api/wf/dictEdt',
	'dictRmv': GLOBAL.proxyUrl + 'api/wf/dictRmv',
	'dictSts': GLOBAL.proxyUrl + 'api/wf/dictSts',
	
    // 流程管理
    "getWorkFlowList":  GLOBAL.proxyUrl + "api/wf/getWorkFlowList",
    "getWorkFlowByFlowId":  GLOBAL.proxyUrl + "api/wf/getWorkFlowByFlowId",
    'workFlowCrd': GLOBAL.proxyUrl + "api/wf/workFlowCrd",
    'workFlowEdt': GLOBAL.proxyUrl + "api/wf/workFlowEdt",
    'workFlowRmv': GLOBAL.proxyUrl + "api/wf/workFlowRmv",
    'workFlowSts': GLOBAL.proxyUrl + "api/wf/workFlowSts",
    "getWorkNodesTreeByFlowId":  GLOBAL.proxyUrl + "api/wf/getWorkNodesTreeByFlowId",
    
    // 报表设计
    "getBirtList": GLOBAL.proxyUrl + "api/wf/getBirtList",
    "getBirtByUuid": GLOBAL.proxyUrl + "api/wf/getBirtByUuid",
    "birtCrd": GLOBAL.proxyUrl + "api/wf/birtCrd",
    "birtEdt": GLOBAL.proxyUrl + "api/wf/birtEdt",
    "birtRmv": GLOBAL.proxyUrl + "api/wf/birtRmv",
    "birtSts": GLOBAL.proxyUrl + "api/wf/birtSts",
    "birtSimulation": GLOBAL.proxyUrl + "api/wf/birtSimulation",
    
	// 业务表设计
	"getJobConfigsTreeByFlowId": GLOBAL.proxyUrl + "api/wf/getJobConfigsTreeByFlowId",
	"getJobConfigsMaxColumn": GLOBAL.proxyUrl + "api/wf/getJobConfigsMaxColumn",
	"getJobConfigsList": GLOBAL.proxyUrl + "api/wf/getJobConfigsList",
	"jobConfigCrd": GLOBAL.proxyUrl + "api/wf/jobConfigCrd",
	"jobConfigEdt": GLOBAL.proxyUrl + "api/wf/jobConfigEdt",
	"jobConfigSave": GLOBAL.proxyUrl + "api/wf/jobConfigSave",
	"jobConfigRmv": GLOBAL.proxyUrl + "api/wf/jobConfigRmv",
	"jobTableRmv": GLOBAL.proxyUrl + "api/wf/jobTableRmv",
    
    // 节点配置
    "getWorkNodeByFlowId": GLOBAL.proxyUrl + "api/wf/getWorkNodeByFlowId",
    "getNodeColumnsConfig": GLOBAL.proxyUrl + "api/wf/getNodeColumnsConfig",
    "nodeColumnsConfigSave": GLOBAL.proxyUrl + "api/wf/nodeColumnsConfigSave",
    "getNodeColumnExamConfig": GLOBAL.proxyUrl + "api/wf/getNodeColumnExamConfig",
    
    // 表单设计
    "getFormDesignList": GLOBAL.proxyUrl + "api/wf/getFormDesignList",
    "getFormDesignConfigByFormId": GLOBAL.proxyUrl + "api/wf/getFormDesignConfigByFormId",
    "formDesignConfigCrd": GLOBAL.proxyUrl + "api/wf/formDesignConfigCrd",
    "formDesignConfigEdt": GLOBAL.proxyUrl + "api/wf/formDesignConfigEdt",
    "formDesignConfigSts": GLOBAL.proxyUrl + "api/wf/formDesignConfigSts",
    "formDesignConfigRmv": GLOBAL.proxyUrl + "api/wf/formDesignConfigRmv",
    "formDesignConfigSave": GLOBAL.proxyUrl + "api/wf/formDesignConfigSave",
    
    // 全局配置
    "getWrokFlowGlobalByKey": GLOBAL.proxyUrl + "api/wf/getWrokFlowGlobalByKey",
    "workFlowGlobalConfigSave": GLOBAL.proxyUrl + "api/wf/workFlowGlobalConfigSave",
    
    // 下载过程脚本
    "getWorkFlowProcessScript": GLOBAL.proxyUrl + "api/wf/getWorkFlowProcessScript",
    // 下载升级脚本
    "getWorkFlowUpgradeScript": GLOBAL.proxyUrl + "api/wf/getWorkFlowUpgradeScript",
    // 业务字段预览
    "getJobsColumnByFlowId": GLOBAL.proxyUrl + "api/wf/getJobsColumnByFlowId",
    
    // start 工作流程
    // 获取流程节点相关配置信息渲染
    "getWorkFlowTodoConfig": GLOBAL.proxyUrl + "api/wf/getWorkFlowTodoConfig",
    // 获取业务数据
    "getJobTodoList": GLOBAL.proxyUrl + "api/wf/getJobTodoList",
    // 打印
    "printJobDetailByUuid": GLOBAL.proxyUrl + "api/wf/printJobDetailByUuid",
    // 导出
    "exportJobListByNodeId": GLOBAL.proxyUrl + "api/wf/exportJobListByNodeId",
    // 进程提交
    "jobProcessSubmit": GLOBAL.proxyUrl + "api/wf/jobProcessSubmit",
    // 获取业务审核信息
    "getJobExamDetail": GLOBAL.proxyUrl + "api/wf/getJobExamDetail",
    // 业务审核及审核并提交
    "jobExamOrSubmitWorkFlow": GLOBAL.proxyUrl + "api/wf/jobExamOrSubmitWorkFlow",
    // 获取业务数据
    "getJobDataDetail": GLOBAL.proxyUrl + "api/wf/getJobDataDetail",
    // 获取默认表单显示配置
    "getJobFormDefaultConfig": GLOBAL.proxyUrl + "api/wf/getJobFormDefaultConfig",
    // 根据业务配置ID获取配置
    "getJobFormConfigByFormId": GLOBAL.proxyUrl + "api/wf/getJobFormConfigByFormId",
    // 业务保存及保存并提交
    "jobCommitOrSaveOfWorkFlow": GLOBAL.proxyUrl + "api/wf/jobCommitOrSaveOfWorkFlow",
    
    // 附加业务
    // 获取业务分析数据
    "getWorkFlowAnalysis": GLOBAL.proxyUrl + "api/wf/getWorkFlowAnalysis",
    // 获取业务流程
    "getWorkFlowByBelongForEnabled": GLOBAL.proxyUrl + "api/wf/getWorkFlowByBelongForEnabled",
    // 获取流程数据分析
    "getJobWorkFlowNodeAnalysis": GLOBAL.proxyUrl + "api/wf/getJobWorkFlowNodeAnalysis",
    // 获取历史记录列表
    "getHistoryJobList": GLOBAL.proxyUrl + "api/wf/getHistoryJobList",
    // 获取历史详情数据
    "getHistoryJobDataDetail": GLOBAL.proxyUrl + "api/wf/getHistoryJobDataDetail",
    // 获取节点字典信息
    "getWorkNodeByFlowIdForDict": GLOBAL.proxyUrl + "api/wf/getWorkNodeByFlowIdForDict",
    // 客户列表字段配置获取
    "getCustomerColumnsConfig": GLOBAL.proxyUrl + "api/wf/getCustomerColumnsConfig",
    // 获取客户列表数据
    "getCustomerJobList": GLOBAL.proxyUrl + "api/wf/getCustomerJobList",
    // 客户列表导出
    "exportCustomerListByFlowId": GLOBAL.proxyUrl + "api/wf/exportCustomerListByFlowId",
    // 获取客户列表字段配置
    "getCustomerColumnsSet": GLOBAL.proxyUrl + "api/wf/getCustomerColumnsSet",
    // 客户列表配置保存
    "customerColumnsSetSave": GLOBAL.proxyUrl + "api/wf/customerColumnsSetSave",
}
// 附件上传（对象存储）
const objectStore = {
    "putObjectChannelImages": GLOBAL.proxyUrl + "api/wf/putObjectChannelImages", // 上传文件（对象存储）（仅图片）
    "getObjectChannel": GLOBAL.proxyUrl + "api/wf/getObjectChannel", // 获取文件（单个）（对象存储）
    
    "upload_file": GLOBAL.proxyUrl + "saas/Share/putObjectChannelFiles/version/v1", // 上传文件（对象存储）（所有文件，不做任何处理）
    "get_files": GLOBAL.proxyUrl + "saas/Share/getObjectChannelMulti/version/v1", // 获取多个（批量）文件（对象存储）
    "hxBupload_img": GLOBAL.proxyUrl + "saas/Share/attachUploadHxb/version/v1", // 华夏B上传文件（对象存储）（仅图片）
}

// 附件上传
const att_api = {
    "att_file": GLOBAL.proxyUrl + "saas/Share/attachUpload/version/v1", // ATTACHMENT附件上传
    "att_del": GLOBAL.proxyUrl + "saas/Share/attachDel/version/v1", // ATTACHMENT附件删除
    "get_atts": GLOBAL.proxyUrl + "saas/Share/attachResouce/version/v1" // ATTACHMENT附件资源获取
}

// 消息通知
const msgs_api = {
    "get_list": GLOBAL.proxyUrl + "saas/sys.Setting/getMessageList/version/v1", // 获取列表
    "get_view": GLOBAL.proxyUrl + "saas/sys.Setting/getMessageView/version/v1", // 获取详细信息
    "get_msg_total": GLOBAL.proxyUrl + "saas/sys.Setting/getMessageTotal/version/v1", // 获取未读总数
    "set_msg_status": GLOBAL.proxyUrl + "saas/sys.Setting/setMessageStatus/version/v1", // 标记消息已读，删除，（全部已读，全部删除）
}

export {
    api,
    objectStore,
    att_api,
    msgs_api
}